package com.kly.chatter.api.application.controller.chatter.req;

import com.kly.user.dto.ModelInfoChangeDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
@ApiModel(description = "model 信息修改")
public class ChatterEditReq implements Serializable {

    @ApiModelProperty(value = "model 用户编号")
    private String userCode;

    @ApiModelProperty(value = "about me")
    private String aboutMe;

    @ApiModelProperty(value = "interests")
    private List<String> interests;

    @ApiModelProperty(value = "turn-ons")
    private List<Integer> turnOns;

    @ApiModelProperty(value = "身高")
    private String height;

    @ApiModelProperty(value = "why are you here")
    private String wAYH;

    public static ModelInfoChangeDto toModelInfoChangeDto(ChatterEditReq chatterEditReq) {
        ModelInfoChangeDto modelInfoChangeDto = new ModelInfoChangeDto();
        modelInfoChangeDto.setUserCode(chatterEditReq.getUserCode());
        modelInfoChangeDto.setHeight(chatterEditReq.getHeight());
        modelInfoChangeDto.setWAYH(chatterEditReq.getWAYH());
        modelInfoChangeDto.setInterests(chatterEditReq.getInterests());
        modelInfoChangeDto.setTurnOns(chatterEditReq.getTurnOns());
        return modelInfoChangeDto;
    }
}
